<?
$masterid = $_GET['id'] or die("No Youtube Video Specified!");
$ytl = file_get_contents("http://www.youtube.com/watch?v=$masterid");
$match = array(); 
preg_match('/<span class="likes">(.*?)</',$ytl,$match);
$data['ytlikes'] = $match[1];
$new_string = ereg_replace("[^0-9]", "", $match[1] );
echo $new_string;
?>